package com.itheima.mapper;

import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SetmealMapper {
    void add(Setmeal setmeal);

    void addCheckGroupAndSetMeal(@Param("setmealId") Integer setmealId, @Param("gid") Integer gid);

    List<Setmeal> findPage(@Param("queryString") String queryString);
    @Select("select * from t_setmeal")
    List<Setmeal> findAll();

    Setmeal findSetMealById(@Param("id") Integer id);
}
